home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / FILER / GZIP1_2_.SPK / ReadMeArc < prev    next >
Text File  |  1993-07-29  |  4KB  |  78 lines

  1. gzip 1.2.3 for the Archimedes version 1.0
  2.  
  3. Basically all what is said below about the 1.1.1 version is true for the 1.2.3
  4. version as well.
  5. gzip became a lot faster (20%) since version 1.1.1.
  6. The -<digit> compression good/fast factor has a greater range now:
  7. -1 is faster than unix compress and still has a lot better ratios:
  8. (tests with the original tar file on a DEC ultrix box )
  9. (1.2.3) gzip -1 gzip1.2.3.tar : ratio: 33% (takes 80% of the time
  10.                         compress -16 takes)
  11. compress -b 16 gzip1.2.3.tar : ratio: 41%
  12. with (1.2.3) gzip -4 you'll now have about the same compression ratio (but 20%
  13. speed improvement) as gzip 1.1.1 with option -1 .
  14.  
  15. The major changes are a possible -S (suffix) of "" ( I hacked that into
  16. version 1.1.1 already,but finally decided not to release it) and support
  17. for SCO compress -H format (unlzh.c in sources). See docs/NEWS for a
  18. detailed list og changes.
  19.  
  20. --------------------------------------------------------------
  21.  
  22. gzip 1.1.1 for the Archimedes version 1.0
  23.  
  24. There are two versions included here:
  25. gzip-uname : this is gzip linked WITH Riscos->Unix uname() filename translation
  26.              in Unixlib
  27. gzip : gzip linked WITHOUT filename translation in Unixlib.I prefer this one.
  28.  
  29. The default extension (see tailor.h) is /gz ,but can be changed with the -S
  30. option. When decompressing,the following extensions are recognized and
  31. handled properly (.tar.gz files etc. see docs !): /gz,/z,/taz,/tgz,-gz,-z, _z
  32.  
  33. The options system variable is <Gzip$Otions> ,referred as GZIP or GZIP_OPT
  34. under DOS/OS-2 and in the docs.
  35.  
  36. Use gzip -h to get a help chart, or check the doc.gzip/doc file
  37.  
  38. To have gunzip or zcat : just rename a copy of gzip to that name,it
  39. will automagically recognize it's own name (as with compress/uncompress),
  40. I am not sure if this will work as a link ,as there are many different
  41. approaches to make soft links possible under the Archimedes.
  42.  
  43. ---------------------
  44.  
  45. Changes in code (from original GNU distribution):
  46. gzip.c (search for: #ifdef ARCH) some code for dirent.h ; utime() datestamps ;
  47.        as well as different recognized file extensions (see above)
  48. tailor.h (search for: #if defined (ARCH)) various #defines
  49. Makefile : various -Dopts (= #defines)
  50.  
  51. ---------------------
  52.  
  53. Problems encountered (might be useful for other GNU-> Archimedes ports):
  54.  
  55. The -r (recurse into directories) works now, Unixlib defines  type dir_type
  56. in <dirent.h> a little different than normal BSD-derivative flavours of unix,
  57. it rather defines it like in BSD <sys/dir.h> ,but doesn't have this file for
  58. itself.
  59.  
  60. utime() works now, means: filestamps of compressed/uncompressed files stay the
  61. same after processing.
  62. This was a very stupid bug due to Unixlib not treating utime(filename,time)
  63. correctly. Unixlib takes time as of type time_t (unsigned integer), which is
  64. the datestamp as an integer value of 'seconds since Jan-01-1970 00:00h GMT'.
  65. Correctly, time (if != 0) must be a pointer to a structure named utimbuf,
  66. which is correctly defined in gzip.c (look at #ifndef NO_UTIME ),which describes
  67. actime and modtime, which is time of last access and time of last modification.
  68. Unixlib also doesn't comply to BSD standard if 'time' in utime(filename,time)
  69. is zero: this should set the modification time to the current time instead,
  70. Unixlib returns an error(20).
  71. This means Unixlib doesn't support the unix equavalent of *stamp <filename>
  72. (the only way we have,under RO to change a datestamp,how stupid,did someone
  73. implement a unix 'touch' yet?)
  74. This is all simply bad behavior of Unixlib (3.6c),but can be relatively easily
  75. corrected. (utime.c is short,maybe I'll do it,and distribute with the next gzip)
  76.  
  77. (C)1993 by GNU and DDL.
  78.